package co.edu.usbcali.rebio.presentation.backEndBeans;

import com.icesoft.faces.component.ext.HtmlInputSecret;
import com.icesoft.faces.component.ext.HtmlInputText;

public class RebInitialMenu {
	
	private String nombre;
	private HtmlInputText txtLogin;
	private HtmlInputSecret txtPassword;
	RebLoginView loginView = new RebLoginView();

	public String getNombre() {
		
		String login = txtLogin.getValue().toString();
		String password = txtPassword.getValue().toString();
		
		if(login.equals("luis") && password.equals("luis")){
			
			nombre = login;
		}
		if(login.equals("alberto") && password.equals("alberto")){
			
			nombre = login;
		}
		
		return nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}

	public RebLoginView getLoginView() {
		
		return loginView;
	}

	public void setLoginView(RebLoginView loginView) {
		this.loginView = loginView;
	}

	public HtmlInputText getTxtLogin() {
		return txtLogin;
	}

	public void setTxtLogin(HtmlInputText txtLogin) {
		this.txtLogin = txtLogin;
	}

	public HtmlInputSecret getTxtPassword() {
		return txtPassword;
	}

	public void setTxtPassword(HtmlInputSecret txtPassword) {
		this.txtPassword = txtPassword;
	}
	
	
	
	

}
